<form action="index.php" method="post" name="adminForm">
  <table class="adminlist">
    <thead>
      <tr>
        <th width="20">
          <input type="checkbox" name="toggle" value="" onclick="checkAll(<?= count($this->stats); ?>);" />
        </th>
        <th class="title"><?= JHTML::_( 'grid.sort', 'First Team', 'first_team', $this->lists['order_Dir'], $this->lists['order']); ?></th>
        <th class="15%"><?= JHTML::_( 'grid.sort', 'Second Team', 'second_team', $this->lists['order_Dir'], $this->lists['order']); ?></th>
        <th width="15%"><?= JHTML::_( 'grid.sort', 'Schedule', 'schedule', $this->lists['order_Dir'], $this->lists['order']); ?></th>
        <th width="5%"><?= JHTML::_( 'grid.sort', 'Status', 'game_end_status', $this->lists['order_Dir'], $this->lists['order']); ?></th>
        <th width="5%"><?= JHTML::_( 'grid.sort', 'Published', 'published', $this->lists['order_Dir'], $this->lists['order']); ?></th>
      </tr>
    </thead>  
    <?
      jimport('joomla.filter.output');
      for($i=0; $i< count($this->stats); $i++)
      {
        $stat       = &$this->stats[$i];
        $checked    = JHTML::_('grid.id', $i, $stat->id);
        $published    = JHTML::_('grid.published', $stat, $i);
        $link      = 'index.php?option=' . $option . '&task=edit&c=gamestat&cid[]='. $stat->id;
        
        $first_team  = $stat->first_team;
        $second_team = $stat->second_team;
        $schedule    = $stat->schedule;
        $first_team_final_score  = $stat->first_team_final_score;
        $second_team_final_score = $stat->second_team_final_score;
        $game_end_status = $stat->game_end_status;
        
    ?>
      <tr>
        <td>
          <?= $checked; ?>
        </td>
        <td>
          <a href="<?= $link; ?>"><?= JText::_($first_team.' -'.$first_team_final_score) ?></a>
        </td>
        <td>
          <a href="<?= $link; ?>"><?= JText::_($second_team.' -'.$second_team_final_score) ?></a>
        </td>
        <td>
          <?= $schedule ?>
        </td>
        <td>
          <?= $game_end_status?>
        </td>
        <td>
          <?= $published ?>
        </td>
      </tr>
    <?php
      }
    ?>
    <tr>
      <td colspan="14"><?= $this->pagination->getListFooter(); ?></td>
    </tr>
  </table>
  <input type="hidden" name="option" value="<?= JRequest::getVar( 'option' );?>"/>
  <input type="hidden" name="c" value="<?= JRequest::getVar('c', 'gamestat'); ?>" />
    <input type="hidden" name="task" value=""/>
    <input type="hidden" name="boxchecked" value="0"/>      
  <input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
  <input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" />
</form>